//
//  SecondViewController.m
//  Lesson
//
//  Created by centling on 15/4/17.
//  Copyright (c) 2015年 Seas.CHENG. All rights reserved.
//

#import "SecondViewController.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"Second";
    [self.navigationController setNavigationBarHidden:NO];
    
    UIBarButtonItem *item=[[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStyleBordered target:nil action:nil];
    [self.navigationItem setBackBarButtonItem:item];
    
    UIView *view=[[UIView alloc] initWithFrame:CGRectMake(0, 0, 150, 44)];
    view.backgroundColor=[UIColor blueColor];
    self.navigationItem.titleView=view;
    
    
    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
